<template>
    <view>
        <!-- pages/earningsRule/index.wxml -->
        <!-- 头部 -->
        <navber id="head-navber" :navbarData="navbarData"></navber>

        <view class="ear">
            <view class="ear-title">收益规则</view>
            <view class="ear-content">{{ content }}</view>
        </view>
    </view>
</template>

<script>
import navber from '@/components/navber/index';
// pages/earningsRule/index.js
const Api = require('../../api/index.js');

export default {
    components: {
        navber
    },
    data() {
        return {
            navbarData: {
                title: '收益规则' //顶部标题
            },
            //导航栏
            content: ''
        };
    },
    onLoad() {
        var json = {
            type: 2
        };
        Api.getRule(json).then((res) => {
            this.setData({
                content: res.data.rule
            });
        });
    },
    methods: {}
};
</script>
<style>
@import './index.css';
</style>
